#ifndef EEPROM_H
#define EEPROM_H

#include "sys_pub.h"
#include "sys_eeprom.h"

// EEPROM操作函数
bool eeprom_write(uint32_t address, const void *data, uint32_t size);
bool eeprom_read(uint32_t address, void *data, uint32_t size);
uint16_t eeprom_calculate_checksum(const void *data, uint32_t size);

// 配置存储地址
#define CONFIG_EEPROM_ADDRESS 0x0000

#endif // EEPROM_H
    